import request from '@/utils/axios'

/**
 * @author 严克杨
 * @param data
 */
// 获取所有医生信息
export function getDoctor(data) {
  return request({
    url: '/doctor/list',
    method: 'post',
    data: data
  })
}
// 获取医生信息
export function getOneDoctor(data) {
  return request({
    url: '/doctor/one',
    method: 'post',
    data: data
  })
}
// 添加医生
export function addDoctor(data) {
  return request({
    url: '/doctor/add',
    method: 'post',
    data: data
  })
}
// 修改医生信息
export function modifyDoctor(data) {
  return request({
    url: '/doctor/modify',
    method: 'post',
    data: data
  })
}
// 删除医生
export function deleteDoctor(data) {
  return request({
    url: '/doctor/delete',
    method: 'post',
    data: data
  })
}
// 发起会诊
export function consultationPost(data) {
  return request({
    url: '/consultation/post',
    method: 'post',
    data: data
  })
}
// 全部会诊记录
export function consultationList(data) {
  return request({
    url: '/consultation/list',
    method: 'post',
    data: data
  })
}
// 所有会诊信息
export function messageList(data) {
  return request({
    url: '/consultation/message',
    method: 'post',
    data: data
  })
}
// 更新会诊会诊信息
export function updateConsultation(data) {
  return request({
    url: '/consultation/update',
    method: 'post',
    data: data
  })
}
// 会诊信息
export function getInfo(data) {
  return request({
    url: '/consultation/info',
    method: 'post',
    data: data
  })
}
// 获取会诊意见书
export function getResult(data) {
  return request({
    url: '/consultation/result',
    method: 'post',
    data: data
  })
}
// 发送会诊意见书
export function resultPost(data) {
  return request({
    url: '/consultation/resultPost',
    method: 'post',
    data: data
  })
}
// 会诊结果
export function exportConsult(data) {
  return request({
    url: '/consultation/export',
    method: 'get',
    param: data
  })
}

